<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function nr(value){
            document.getElementById("hh").innerHTML = value; 
        }
    </script>
</head>
<body>
    <form action="">
        <input type="button" value="新闻" onclick="nr(value)">
        <input type="button" value="体育" onclick="nr(value)">
        <input type="button" value="音乐" onclick="nr(value)">
        <input type="button" value="时事" onclick="nr(value)">

        <p id="hh"></p>

        <!-- <button value="新闻" onclick="nr(value)">新闻</button> -->
    </form>
</body>
</html>